function output_quad(stru_quad_up,stru_quad_down)
fup=fopen('quad_up.txt','w');
fdown=fopen('quad_down.txt','w');
fprintf(fup,'Elm ');
fprintf(fdown,'Elm ');
for i=1:length(stru_quad_up)
    fprintf(fup,'%d ',stru_quad_up(i));
end
for i=1:length(stru_quad_down)
    fprintf(fdown,'%d ',stru_quad_down(i));
end
fclose('all');
end